﻿@model Janus.Mes.VO.SysConfigVO

@{
    Layout = null;
    var i = 1;
    ViewBag.ViewTitle = "添加/编辑检验方案";
}
<div class="pageContent">
    <form method="post" action="System/SysConfig/create?OpID=@ViewData["OperateID"]" class="pageForm required-validate"
          onsubmit="return validateCallback(this, dialogAjaxDone);">
        @Html.ValidationSummary(true)
        <div class="pageFormContent" layouth="56">
            <input id="hidIsCreate" name="hidIsCreate" type="hidden" value="@ViewBag.IsCreate" />
            @Html.HiddenFor(model => model.Id)
            <p>
                <label>
                    检验特性描述：
                </label>
                @*@Html.SelectRolers(new { @class = "treetable select3", @name = "ParentID", id = "ParentID", selectedvalue = "22" })*@
                <input id="SelectFeatures" name="org1.orgNum" value="2" type="hidden">
                <input class="required textInput" name="org1.orgName" type="text" postfield="keyword1" suggestfields="orgNum,orgName" suggesturl="Quality/CheckSettings/SelectFeatures" lookupgroup="orgSelectFeatures" autocomplete="off">
                <a class="btnLook" href="Quality/CheckSettings/SelectFeatures" lookupgroup="org1">检验特性</a>
            </p>
            <p>
                <label>
                    检验项目名称：
                </label>
                <input class="readonly testInput" id="inputOrg2" readonly="readonly" name="org1.orgPro" value="">
            </p>
            <p>
                <label>
                    控制数据：
                </label>
                <input class="readonly testInput" id="inputOrg2" readonly="readonly" name="org1.orgData" value="">
            </p>
            <p>
                <label>
                    缺陷等级：
                </label>
                <input class="readonly testInput" id="inputOrg2" readonly="readonly" name="org1.orgLevel" value="">
            </p>
            <p>
                <label>
                    是否破坏：
                </label>
                <input class="readonly testInput" id="inputOrg2" readonly="readonly" name="org1.orgBreak" value="">
            </p>
            <p>
                <label>
                    检验方法：
                </label>
                @*@Html.TextBoxFor(sysConfig => sysConfig.Title, new { @class = "required" })
                    @Html.ValidationMessageFor(sysConfig => sysConfig.Title)*@
                @Html.SelectRolers(new { @class = "treetable select3", @style = "width:146px", @name = "ParentID", id = "ParentID", selectedvalue = "22" })
            </p>
            <p>
                <label>
                    检测设备：
                </label>
                @Html.SelectRolers(new { @class = "treetable select3", @style = "width:146px", @name = "ParentID", id = "ParentID", selectedvalue = "22" })
                @*<input id="SelectDevice" name="org2.orgNum" value="2" type="hidden">
                    <input class="required textInput" name="org2.orgName" type="text" postfield="keyword2" suggestfields="orgNum,orgName" suggesturl="Quality/InspectionScheme/Select" lookupgroup="orgSelectDevice" autocomplete="off">
                    <a class="btnLook" href="Quality/InspectionScheme/SelectDevice" lookupgroup="org2">测量设备</a>*@
            </p>
            <p>
                <label>
                    检验环境：
                </label>
                @Html.SelectRolers(new { @class = "treetable select3", @style = "width:146px", @name = "ParentID", id = "ParentID", selectedvalue = "23" })
                @*<input id="SelectEMT" name="org3.id" value="2" type="hidden">
                    <input class="required textInput" name="org3.orgName" type="text" postfield="keyword3" suggestfields="orgNum,orgName" suggesturl="Quality/InspectionScheme/SelectEMT" lookupgroup="orgSelectEMT" autocomplete="off">
                    <a class="btnLook" href="Quality/InspectionScheme/SelectEMT" lookupgroup="org3">检验环境</a>*@
            </p>
            <p>
                <label>
                    检验地点：
                </label>
                @Html.SelectRolers(new { @class = "treetable select3", @style = "width:146px", @name = "ParentID", id = "ParentID", selectedvalue = "21" })
                @*<input id="SelectPlace" name="org4.orgNum" value="2" type="hidden">
                    <input class="required textInput" name="org4.orgName" type="text" postfield="keyword4" suggestfields="orgNum,orgName" suggesturl="Quality/InspectionScheme/SelectPlace" lookupgroup="orgSelectPlace" autocomplete="off">
                    <a class="btnLook" href="Quality/InspectionScheme/SelectPlace" lookupgroup="org4">检验地点</a>*@
            </p>
            <p>
                <label>
                    检验方式：
                </label>
                @Html.SelectRolers(new { @class = "treetable select3", @style = "width:146px", @name = "ParentID", id = "ParentID", selectedvalue = "20" })
                @*<input id="SelectPlace" name="org4.orgNum" value="2" type="hidden">
                    <input class="required textInput" name="org4.orgName" type="text" postfield="keyword4" suggestfields="orgNum,orgName" suggesturl="Quality/InspectionScheme/SelectPlace" lookupgroup="orgSelectPlace" autocomplete="off">
                    <a class="btnLook" href="Quality/InspectionScheme/SelectPlace" lookupgroup="org4">检验地点</a>*@
            </p>
            <p>
                <label>
                    必检：
                </label>
                <input type="checkbox" name="IsInspection" value="true" />
            </p>

            <p style="width:100%;height:50px">
                <label>
                    备注：
                </label>
                @Html.TextAreaFor(sysConfig => sysConfig.Value, new { @id = "Remark", @style = "width:70%;height:40px" })
            </p>
            <fieldset>
                <legend>定量</legend>
                <p>
                    <label>
                        标准值：
                    </label>
                    @Html.TextBoxFor(sysConfig => sysConfig.Title, new { @id = "StandardValue" })
                </p>
                <p>
                    <label>
                        上公差：
                    </label>
                    @Html.TextBoxFor(sysConfig => sysConfig.Title, new { @id = "UpTolerance" })
                </p>
                <p>
                    <label>
                        下公差：
                    </label>
                    @Html.TextBoxFor(sysConfig => sysConfig.Title, new { @id = "LwTolerance" })
                </p>
                <p>
                    <label>
                        上限值：
                    </label>
                    @Html.TextBoxFor(sysConfig => sysConfig.Title, new { @id = "UpValue" })
                </p>
                <p>
                    <label>
                        下限值：
                    </label>
                    @Html.TextBoxFor(sysConfig => sysConfig.Title, new { @id = "LwValue" })
                </p>
                <p>
                    <label>
                        小数位数：
                    </label>
                    @Html.TextBoxFor(sysConfig => sysConfig.Title, new { @id = "Digit" })
                </p>
                <p>
                    <label>
                        单位：
                    </label>
                    @Html.TextBoxFor(sysConfig => sysConfig.Title, new { @id = "Units" })
                </p>
            </fieldset>
            <fieldset>
                <legend>定性</legend>
                <p style="width:100%;height:110px">
                    @Html.TextAreaFor(sysConfig => sysConfig.Value, new { @id = "Remark", @style = "width:70%;height:100%" })
                </p>
            </fieldset>
        </div>

        @Html.Partial("FormButtonBar")
    </form>
</div>
